package com.example.salesystem.service;

import com.example.salesystem.model.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lishuo
 * @since 2024-05-18
 */
public interface IUserService extends IService<User> {
    /**
     * 用户登录
     * @param username
     * @param password
     */
    User login(String username, String password);

    /**
     * 修改用户信息
     * @param user
     * @return
     */
    User modefyInfo(User user);

    /**
     * 修改密码
     * @param oldPassword
     * @param newPassword
     * @param oldUser
     */
    void modefyPwd(String oldPassword, String newPassword, User oldUser);

    /**
     * 测试 mock
     */
    String realMethod();
}
